#include <iostream>

using std::cout;
using std::endl;

void func(int value)
{
    cout << "value = " << value << endl;
}
void test()
{
    int a = 10;
    [a](int value)mutable->void{
        ++a;
        cout << "a = " << a << endl;
        cout << "value = " << value << endl;
    }(100);

    cout << "a = " << a << endl;
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

